#coding:coding
import os

from google.appengine.api import users

from google.appengine.ext import db
from google.appengine.ext.db import djangoforms

import django
from django import http
from django import shortcuts

class setting(db.Model)
  user = db.UserProperty()
  send_on_ok = db.BooleanProperty()
  send_on_err = db.BooleanProperty()
  send_im = db.IMProperty()
  send_email = db.StringProperty()
  is_send_im = db.BooleanProperty()
  is_send_email = db.BooleanProperty()
  
class Http200(db.Model):
  name = db.StringProperty(required=True)
  user = db.UserProperty()
  server = db.StringProperty(required=True)
  url = db.URLProperty(required=True)
  isrun = db.BooleanProperty()
  created = db.DateTimeProperty(auto_now_add=True)
  im = db.IMProperty()
  hashtype = db.IntegerProperty()
  
  
class Http200Form(djangoforms.ModelForm):
  class Meta:
    model = Http200
    exclude = ['giver', 'created', 'modified']
